package com.hejielife.immutable1;

/**
 * 2019年8月2日 上午10:46:52
 * 
 * @author hejielife
 * @despribe 模拟打印
 */
public class PrintPersonThread extends Thread {
	private Person person;

	public PrintPersonThread(Person person) {
		this.person = person;
	}

	public void run() {
		while (true) {
			System.out.println(Thread.currentThread().getName() + " prints " + person);
		}
	}
}
